package com.misboot.document.model;

import cn.ewsd.common.model.MCoreBase;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 文档管理
 *
 * @Author 佐佑科技
 * @Email fengkai@zuoyo.com
 * @Date 2023-09-15 10:55:01
 */
@Table(name = "of_document")
public class OfDocument extends MCoreBase {
    private static final long serialVersionUID = 1L;

    // 上传部门ID
    private String uploadOrgId;
    // 状态
    private String state;
    // 上传人ID
    private String uploadUserNameId;
    // 版本号
    private String docVersion;
    // 是否删除
    private String whetherDelete;
    // 是否个人文件柜
    private String whetherPersonalFiles;
    // pid
    private Integer pid;
    // 总大小
    private Integer size;
    // 上传部门
    private String uploadOrg;
    // 文档编号
    private String docNumber;
    // 主文件大小
    private Integer docSize;
    // 有效期
    private String periodValidity;
    // 摘要
    private String ofAbstract;
    // 主文档url
    private String mainDocUrl;
    // 上传人
    private String uploadUserName;
    // 文档标题
    private String title;
    // 来源
    private String source;
    // id
    private Integer id;
    // 关键词
    private String keyword;
    // 销毁时间
    private Date destructionTime;
    // 文档密级;普通、保密
    private String docConfidentialityLevel;
    // 选项;显示子文件夹的文档-0、添加文档时需审核-1、删除文档时需审核-2
    private String ofOption;
    // 文档类型;标准文档、发文文档、收文文档、证件文档
    private String type;
    // 份数
    private Integer numberCopies;
    // 是否文件夹;0-是、1-否
    private String whetherFolder;
    // 是否电子文档;是-0、否-1
    private String isElectronicDoc;
    // 个人文件用户id
    private String personalFilesUserId;
    // 主文档名称
    private String mainDocName;
    // 作者
    private String author;
    // 说明
    private String illustrate;

    //子集文件数
    @Transient
    private Integer subsetFileNumber;
    //子集文件夹数
    @Transient
    private Integer subsetFolderNumber;

    //绑定的版本号
    private String versionUuid;
    //审核人
    private String reviewedBy;
    //审核人id
    private String reviewedById;
    //审批来源
    private String approvalSource;

    /**
     * 设置：上传部门ID
     */
    public void setUploadOrgId(String uploadOrgId) {
        this.uploadOrgId = uploadOrgId;
    }

    /**
     * 获取：上传部门ID
     */
    public String getUploadOrgId() {
        return uploadOrgId;
    }


    /**
     * 设置：状态
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * 获取：状态
     */
    public String getState() {
        return state;
    }


    /**
     * 设置：上传人ID
     */
    public void setUploadUserNameId(String uploadUserNameId) {
        this.uploadUserNameId = uploadUserNameId;
    }

    /**
     * 获取：上传人ID
     */
    public String getUploadUserNameId() {
        return uploadUserNameId;
    }


    /**
     * 设置：版本号
     */
    public void setDocVersion(String docVersion) {
        this.docVersion = docVersion;
    }

    /**
     * 获取：版本号
     */
    public String getDocVersion() {
        return docVersion;
    }


    /**
     * 设置：是否删除
     */
    public void setWhetherDelete(String whetherDelete) {
        this.whetherDelete = whetherDelete;
    }

    /**
     * 获取：是否删除
     */
    public String getWhetherDelete() {
        return whetherDelete;
    }


    /**
     * 设置：是否个人文件柜
     */
    public void setWhetherPersonalFiles(String whetherPersonalFiles) {
        this.whetherPersonalFiles = whetherPersonalFiles;
    }

    /**
     * 获取：是否个人文件柜
     */
    public String getWhetherPersonalFiles() {
        return whetherPersonalFiles;
    }


    /**
     * 设置：pid
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * 获取：pid
     */
    public Integer getPid() {
        return pid;
    }


    /**
     * 设置：总大小
     */
    public void setSize(Integer size) {
        this.size = size;
    }

    /**
     * 获取：总大小
     */
    public Integer getSize() {
        return size;
    }


    /**
     * 设置：上传部门
     */
    public void setUploadOrg(String uploadOrg) {
        this.uploadOrg = uploadOrg;
    }

    /**
     * 获取：上传部门
     */
    public String getUploadOrg() {
        return uploadOrg;
    }


    /**
     * 设置：文档编号
     */
    public void setDocNumber(String docNumber) {
        this.docNumber = docNumber;
    }

    /**
     * 获取：文档编号
     */
    public String getDocNumber() {
        return docNumber;
    }


    /**
     * 设置：主文件大小
     */
    public void setDocSize(Integer docSize) {
        this.docSize = docSize;
    }

    /**
     * 获取：主文件大小
     */
    public Integer getDocSize() {
        return docSize;
    }


    /**
     * 设置：有效期
     */
    public void setPeriodValidity(String periodValidity) {
        this.periodValidity = periodValidity;
    }

    /**
     * 获取：有效期
     */
    public String getPeriodValidity() {
        return periodValidity;
    }


    /**
     * 设置：摘要
     */
    public void setOfAbstract(String ofAbstract) {
        this. ofAbstract = ofAbstract ;
    }

    /**
     * 获取：摘要
     */
    public String getOfAbstract() {
        return ofAbstract ;
    }


    /**
     * 设置：主文档url
     */
    public void setMainDocUrl(String mainDocUrl) {
        this.mainDocUrl = mainDocUrl;
    }

    /**
     * 获取：主文档url
     */
    public String getMainDocUrl() {
        return mainDocUrl;
    }


    /**
     * 设置：上传人
     */
    public void setUploadUserName(String uploadUserName) {
        this.uploadUserName = uploadUserName;
    }

    /**
     * 获取：上传人
     */
    public String getUploadUserName() {
        return uploadUserName;
    }


    /**
     * 设置：文档标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取：文档标题
     */
    public String getTitle() {
        return title;
    }


    /**
     * 设置：来源
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * 获取：来源
     */
    public String getSource() {
        return source;
    }


    /**
     * 设置：id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：id
     */
    public Integer getId() {
        return id;
    }


    /**
     * 设置：关键词
     */
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    /**
     * 获取：关键词
     */
    public String getKeyword() {
        return keyword;
    }


    /**
     * 设置：销毁时间
     */
    public void setDestructionTime(Date destructionTime) {
        this.destructionTime = destructionTime;
    }

    /**
     * 获取：销毁时间
     */
    public Date getDestructionTime() {
        return destructionTime;
    }


    /**
     * 设置：文档密级;普通、保密
     */
    public void setDocConfidentialityLevel(String docConfidentialityLevel) {
        this.docConfidentialityLevel = docConfidentialityLevel;
    }

    /**
     * 获取：文档密级;普通、保密
     */
    public String getDocConfidentialityLevel() {
        return docConfidentialityLevel;
    }


    /**
     * 设置：选项;显示子文件夹的文档-0、添加文档时需审核-1、删除文档时需审核-2
     */
    public void setOfOption(String ofOption) {
        this.ofOption = ofOption;
    }

    /**
     * 获取：选项;显示子文件夹的文档-0、添加文档时需审核-1、删除文档时需审核-2
     */
    public String getOfOption() {
        return ofOption;
    }


    /**
     * 设置：文档类型;标准文档、发文文档、收文文档、证件文档
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取：文档类型;标准文档、发文文档、收文文档、证件文档
     */
    public String getType() {
        return type;
    }


    /**
     * 设置：份数
     */
    public void setNumberCopies(Integer numberCopies) {
        this.numberCopies = numberCopies;
    }

    /**
     * 获取：份数
     */
    public Integer getNumberCopies() {
        return numberCopies;
    }


    /**
     * 设置：是否文件夹;0-是、1-否
     */
    public void setWhetherFolder(String whetherFolder) {
        this.whetherFolder = whetherFolder;
    }

    /**
     * 获取：是否文件夹;0-是、1-否
     */
    public String getWhetherFolder() {
        return whetherFolder;
    }


    /**
     * 设置：是否电子文档;是-0、否-1
     */
    public void setIsElectronicDoc(String isElectronicDoc) {
        this.isElectronicDoc = isElectronicDoc;
    }

    /**
     * 获取：是否电子文档;是-0、否-1
     */
    public String getIsElectronicDoc() {
        return isElectronicDoc;
    }


    /**
     * 设置：个人文件用户id
     */
    public void setPersonalFilesUserId(String personalFilesUserId) {
        this.personalFilesUserId = personalFilesUserId;
    }

    /**
     * 获取：个人文件用户id
     */
    public String getPersonalFilesUserId() {
        return personalFilesUserId;
    }


    /**
     * 设置：主文档名称
     */
    public void setMainDocName(String mainDocName) {
        this.mainDocName = mainDocName;
    }

    /**
     * 获取：主文档名称
     */
    public String getMainDocName() {
        return mainDocName;
    }


    /**
     * 设置：作者
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 获取：作者
     */
    public String getAuthor() {
        return author;
    }


    /**
     * 设置：说明
     */
    public void setIllustrate(String illustrate) {
        this.illustrate = illustrate;
    }

    /**
     * 获取：说明
     */
    public String getIllustrate() {
        return illustrate;
    }


    public Integer getSubsetFileNumber() {
        return subsetFileNumber;
    }

    public void setSubsetFileNumber(Integer subsetFileNumber) {
        this.subsetFileNumber = subsetFileNumber;
    }

    public Integer getSubsetFolderNumber() {
        return subsetFolderNumber;
    }

    public void setSubsetFolderNumber(Integer subsetFolderNumber) {
        this.subsetFolderNumber = subsetFolderNumber;
    }

    public String getVersionUuid() {
        return versionUuid;
    }

    public void setVersionUuid(String versionUuid) {
        this.versionUuid = versionUuid;
    }

    public String getReviewedBy() {
        return reviewedBy;
    }

    public void setReviewedBy(String reviewedBy) {
        this.reviewedBy = reviewedBy;
    }

    public String getReviewedById() {
        return reviewedById;
    }

    public void setReviewedById(String reviewedById) {
        this.reviewedById = reviewedById;
    }

    public String getApprovalSource() {
        return approvalSource;
    }

    public void setApprovalSource(String approvalSource) {
        this.approvalSource = approvalSource;
    }
}
